|
class Loop |
|
Parent: Entity |
|
|
| |
|
Sample Code:looptests.rb |
|
|
Instance Methods |
|
convex? |
|
Determine if the loop is convex. |
|
Syntax: |
|
status = loop.convex? |
|
Arguments: |
|
|
|
Return Value: |
|
status - true if convex, false if not convex |
|
Comments: |
|
|
|
Example: |
|
depth = 100 |
|
edges |
|
Get an array of the edges that define the loop. |
|
Syntax: |
|
edges = loop.edges |
|
Arguments: |
|
|
|
Return Value: |
|
edges - an array of Edge objects if successful |
|
Comments: |
|
|
|
Example: |
|
depth = 100 |
|
edgeuses |
|
Get an array of the EdgeUse objects that define this loop. |
|
Syntax: |
|
edgeuses = loop.edgeuse |
|
Arguments: |
|
|
|
Return Value: |
|
edgeuses - an array of EdgeUse objects if successful |
|
Comments: |
|
|
|
Example: |
|
depth = 100 |
|
face |
|
Get the Face object that is bounded by this loop. |
|
Syntax: |
|
face = loop.face |
|
Arguments: |
|
|
|
Return Value: |
|
face - a Face object if successful |
|
Comments: |
|
|
|
Example: |
|
depth = 100 |
|
outer? |
|
Determine if this is an outer loop. Each face has one outer loop, and will have one loop for each hole. |
|
Syntax: |
|
status = loop.outer? |
|
Arguments: |
|
|
|
Return Value: |
|
status - true if the loop is an outer loop, false if it is not an outer loop |
|
Comments: |
|
|
|
Example: |
|
depth = 100 |
|
vertices |
|
Get an Array of the vertexes that are part of the loop. The array will be ordered correctly. |
|
Syntax: |
|
vertices = loop.vertices |
|
Arguments: |
|
|
|
Return Value: |
|
verticies - an array of Vertex objects if successful |
|
Comments: |
|
|
|
Example: |
|
depth = 100 |